<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<div id="Top">
  <div id="TopMain"> <a href="<%=request.getContextPath()%>/"><img src="<%=request.getContextPath()%>/template/default/images/logo.png" border="0" style="display: block; float: left; margin-top: 9px; margin-left: 20px;" /></a>
    <div id="Navigation">
      <ul>
        <li><a href="<%=request.getContextPath()%>/" class="top">首页</a></li>
        <li><a href="<%=request.getContextPath()%>/signup" class="top">注册</a></li>
        <li><a href="<%=request.getContextPath()%>/signin" class="top">登入</a></li>
      </ul>
    </div>
    <script type="text/javascript">
            var dispatch = function() {
                q = document.getElementById("q");
                if (q.value != "") {
                    window.open('http://www.google.com/search?q=' + q.value, "_blank");
                    return false;
                } else {
                    return false;
                }
            }
        </script>
    <div id="Search">
      <form onsubmit="return dispatch()">
        <!--<input type="text" class="search" maxlength="40" name="q" value="" id="q" /><input type="submit" class="super normal button" value="Search" style="-moz-border-radius: 0px 5px 5px 0px; border: none;" />-->
        <div style="width: 276px; height: 28px; background-image: url('<%=request.getContextPath()%>/template/default/images/qbar.png'); background-repeat: no-repeat; display: inline-block;">
          <input type="text" maxlength="40" name="q" id="q" value="" />
        </div>
      </form>
    </div>
  </div>
</div>